package com.dj.shop.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description:
 * 日期工具类
 * @Author: zhaoyu
 * @CreateDate: 2019/2/25 17:31
 * @UpdateUser:
 * @UpdateDate:
 * @UpdateRemark:
 */
public class DateUtil {

    /**
     * 获取当前日期
     * @return
     */
    public static String getNowDate() {
            Date currentTime = new Date();
            SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
            String dateString = formatter.format(currentTime);
            return dateString;
         }
}
